package com.example.compose_componet.components


import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Divider
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp

@Composable
fun Topbar(title:String) {
    Box(Modifier.fillMaxWidth()
        .background(color = Color(0xFFBBBBBB))
        .padding(vertical = 8.dp),
        contentAlignment = Alignment.Center )
    {
        Text(text = title)
    }
}



